package com.example.configuration.core;

public class PairNotFoundException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	private Object key;

	public PairNotFoundException(Object key) {
		super();
		this.key = key;
	}

	@Override
	public String getMessage() {
		return "No pair found for key:[" + key + "]";
	}

	@Override
	public String toString() {
		return "PairNotFoundException: " + getMessage();
	}
}
